package com.weishi.project.training.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weishi.project.training.domain.TrainingLocation;

/**
 * 【请填写功能名称】Service接口
 */
public interface ITrainingLocationService extends IService<TrainingLocation> {

    /**
     * 查询【请填写功能名称】列表
     */
    List<TrainingLocation> selectTrainingLocationList(TrainingLocation trainingLocation);

    /**
     * 获取经度纬度
     * @return
     */
    Map<String, Double> getLngAndLat(TrainingLocation trainingLocation);

    /**
     * 查询固定地点当前年内的训练次数
     * @param map
     * @return
     */
    int getTrainingLocationCount(Map<String,Object> map);

    List<TrainingLocation> selectTrainingLocationListByMap(Map<String, Object> params);


    /**
     * 查询训练地址详情
     */
    TrainingLocation getInfo(Integer id);

}